import { createRouter, createWebHashHistory } from 'vue-router'

import Layout from '@/layout/index.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: Layout,
      children: [
        { path: '/', component: () => import('@/views/index.vue') },
        { path: '/reservation', component: () => import('@/views/reservation/index.vue') },
        { path: '/user', component: () => import('@/views/user/index.vue') },
      ],
    },
    { path: '/login', component: () => import('@/views/login.vue') }
  ],
})

export default router